<link rel="stylesheet" href="<?php echo APP_TEMPLATES_URL;?>/css/public.css" />

<style>
	body,
	html {
		background: #F4F4F4 !important;
	}
	
	.indexm {
		display: none;
	}
	
	.btnccc {
		padding: 5px;
		border: 1px solid #ddd !important;
		float: right;
		min-width: 60px;
		text-align: center;
		margin-left: 10px;
		font-size: 12px;
	}
	
	.btnorg {
		padding: 5px;
		border: 1px solid #efb33e !important;
		color: #efb33e;
		min-width: 60px;
		float: right;
		margin-left: 10px;
		text-align: center;
		font-size: 12px;
	}
	
	.fenleigoods {
		float: left;
		width: 100%;
		border-bottom: 1px solid #EEEEEE;
		background: #FFFFFF;
	}
	
	.fenleigoods li:nth-child(odd) {
		border-right: 1px solid #EEEEEE;
	}
	
	.fenleigoods li {
		float: left;
		width: 50%;
		text-align: center;
		line-height: 25px;
		padding-bottom: 20px;
		border-top: 1px solid #EEEEEE;
	}
	.youhui label{font-size: 14px;line-height: 30px;}
</style>
<!-- 导航 -->
<div class="mui-bar mui-bar-nav bj">
	<button class="mui-btn mui-btn-link mui-btn-nav mui-pull-left zys  mui-action-back">
				<img style=" max-width: 50%; vertical-align: middle;" src="<?php echo APP_TEMPLATES_URL;?>/images/back.png" />
			</button>
	<h1 class="mui-title"><label style="font-size: 22px;vertical-align: middle;">订单详情</label></h1>
</div>

<div>
<?php switch($output['order_info']['order_state']){?>
<?php case '10':?>
	<img style="width: 100%;" src="<?php echo APP_TEMPLATES_URL;?>/images/wu.jpg">
	<?php break;?>
	<?php case '20':?>
	<img style="width: 100%;" src="<?php echo APP_TEMPLATES_URL;?>/images/wu1.jpg">
	<?php break;?>
	<?php case '30':?>
	<img style="width: 100%;" src="<?php echo APP_TEMPLATES_URL;?>/images/wu2.jpg">
	<?php break; ?>
	<?php case '40':?>
	<img style="width: 100%;" src="<?php echo APP_TEMPLATES_URL;?>/images/wu3.jpg">
	<?php break;?>
	<?php case '0':?>
	<img style="width: 100%;" src="<?php echo APP_TEMPLATES_URL;?>/images/wu4.jpg">
	<?php break;?>
<?php }?>		
	<table width="100%" style="background: #FFFFFF;">
		<tr>
			<td style="vertical-align: middle;width: 50px;text-align: center;" rowspan="3"><img style="" src="<?php echo APP_TEMPLATES_URL;?>/images/5635.png"></td>
			<td colspan="2" height="25" style="padding-top: 10px;">
				<label style="vertical-align: middle; margin-right: 20px;">订单编号:</label>
				<label style="vertical-align: middle;"><?php echo $output['order_info']['order_sn'];?></label>
			</td>
			<td rowspan="2" style="vertical-align: middle;width: 50px;text-align: center;"><img class="fanz" style="width: 18px;" src="<?php echo APP_TEMPLATES_URL;?>/images/back.png" /></td>
		</tr>
		<tr>
			<td>
				<p style="color: #666666;padding-bottom: 6px; width: ;"><?php echo $output['order_info']['extend_order_common']['reciver_info']['address']." ".$output['order_info']['extend_order_common']['reciver_info']['mob_phone'];?></p>
			</td>
		</tr>
		<tr>
			<td rowspan="2" style="height: 5px;"></td>
		</tr>
	</table>
	<div style="width: 100%; height: 10px; background: #efefef;"></div>
	<div>
		<table width="100%">
        <?php $n=0;?>
		<?php foreach($output['order_info']['extend_order_goods'] as $goods){ ?>
			<tr class="gouwuche" style="background: #F4F4F4;">
				<td width="10" style="padding: 15px 10px 10px 10px;" class="veralignmiddle">
				</td>
				<td width="100" style="padding: 14px 0 12px 0;"><a href="index.php?act=goods&op=goods_detail&goods_id=<?php echo $goods['goods_id']; ?>"><img style=" width: 100px; height: 100px; border: 1px solid #EEEEEE !important;" src="<?php echo cthumb($goods['goods_image'], 265, $goods['store_id']);?>" /></a></td>
				<td style="padding:12px 10px 10px 10px; vertical-align: top;">
					<p id="total2" class="cor666666 ft14 linkh22">
						<?php echo $goods['goods_name'];?>
					</p>
					
					<div>
						<span class="ft13">￥<label id="price" class="ft13"><?php echo (float)$goods['goods_price'];?></label></span>
						<span class="fr ft13">x<label class="number text_box2to"><?php echo $goods['goods_num'];?></label></span>
						<?php if ($output['order_info']['lock_state']) { ?>    <span class="corefb33e ft13">退款退货中</span>
          <?php }?>
					</div>
				</td>
			</tr>
			<?php $n+= $goods['goods_num']; }?>
			<tr>
				<td colspan="3">
					<ul class="across">
						<li class="side notactive">
							<div class="countone notone">
								<label class="textright">
								<label>共<?php echo $n;?>件商品</label>
								<label>&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;合计：</label>
								<label class="corc10a1f">￥<?php echo $output['order_info']['order_amount'];?></label>
								<?php if($output['order_info']['shiping_fee']>0){?><label>（含运费<?php echo (float)$output['order_info']['shiping_fee'];?>）</label><?php }?>
								</label>
							</div>
						</li>
					</ul>
				</td>
			</tr>
			
		</table>
		<div style="width: 100%; height: 10px; background: #F4F4F4;"></div>
	</div>
  <!-- 
	<div class="youhui" style="padding:10px 20px; background: #FFFFFF;">
		<table width="100%">
			<tr>
				<td style="text-align: left;"><label style="color: #333;">优惠劵</label></td>
				<td style="text-align: right;"><label style="color: #999;">优惠￥100.00</label></td>
			</tr>
		</table>
		<table width="100%">
			<tr>
				<td style="text-align: left;"><label style="color: #333;">是否托管</label></td>
				<td style="text-align: right;"><label style="color: #999;">是</label></td>
			</tr>
		</table>
		<table width="100%">
			<tr>
				<td style="text-align: left;"><label style="color: #333;">备注</label></td>
				<td style="text-align: right;"><label style="color: #999;">请检查好质量快速发货！</label></td>
			</tr>
		</table>
	</div>
	-->
	<div style="width: 100%; height: 10px; background: #F4F4F4;"></div>
	
	<div class="youhui" style="padding:10px 20px; background: #FFFFFF;">
		<table width="100%">
			<tr>
				<td style="text-align: left;    width: 75px;"><label style="color: #333;">订单编号：</label></td>
				<td style="text-align: left;"><label style="color: #999;"><?php echo $output['order_info']['order_sn'];?></label></td>
			</tr>
		</table>
		<table width="100%">
			<tr>
				<td style="text-align: left;    width: 75px;"><label style="color: #333;">支付方式：</label></td>
				<td style="text-align: left;"><label style="color: #999;"><?php if($output['order_info']['payment_name']=='wx_jsapi'){ echo '微信支付';}else{echo $output['order_info']['payment_name'];}?></label></td>
			</tr>
		</table>
		<table width="100%">
			<tr>
				<td style="text-align: left;    width: 75px;"><label style="color: #333;">下单时间：</label></td>
				<td style="text-align: left;"><label style="color: #999;"><?php echo date('Y-m-d  H:i',$output['order_info']['add_time'])?></label></td>
			</tr>
		</table>
		<table width="100%">
			<tr>
				<td style="text-align: left;    width: 75px;"><label style="color: #333;">完成时间：</label></td>
				<td style="text-align: left;"><label style="color: #999;"><?php if($output['order_info']['finnshed_time']){echo date('Y-m-d H:i',$output['order_info']['finnshed_time']);}?></label></td>
			</tr>
		</table>
		<?php 
		if(!empty($output['order_info']['shipping_code'])){
		$express = rkcache('express',true);?>
		<table width="100%">
			<tr>
				<td style="text-align: left;    width: 75px;"><label style="color: #333;">快递公司：</label></td>
				<td style="text-align: left;"><label style="color: #999;"><?php echo $express[$output['order_info']['extend_order_common']['shipping_express_id']]['e_name']?></label></td>
			</tr>
		</table>
		<table width="100%">
			<tr>
				<td style="text-align: left;    width: 75px;"><label style="color: #333;">运单号码：</label></td>
				<td style="text-align: left;"><a href="index.php?act=order&op=search_deliver&order_id=<?php echo $output['order_info']['order_id'];?>&order_sn=<?php echo $output['order_info']['order_sn']?>"><label style="color: #999;"><?php echo $output['order_info']['shipping_code']?></label></a></td>
			</tr>
		</table>
		<?php }?>
	</div>
	<div style="width: 100%; height: 10px; background: #F4F4F4;"></div>
	<?php if($goods['year_limit']){?>
	<div style="background: #FFFFFF;">
		<p style="padding:10px 20px;border-bottom: 1px solid #F4F4F4; font-size: 14px;">订单收益记录</p>
	</div>
	<div style="padding:10px 20px; background: #FFFFFF; font-size: 14px;">
		
		<p style="margin: 10px 0;">收益方式：<?php echo $goods['year_limit'];?>年期限，每年<?php echo $goods['year_rate']*$output['order_info']['order_amount'];?>万元</p>
		
		<p style="text-align: center; color: #999999; padding: 30px 0 50px 0;">无记录</p>
		
	</div>
	<?php }?>
	<div style="width: 100%; height: 10px; background: #F4F4F4;"></div>
	
</div>

<img style="width: 100%;" src="<?php echo APP_TEMPLATES_URL;?>/images/kong_06.jpg">
<div>

	<ul class="fenleigoods">
	<?php foreach ($output['goods_list_sl'] as $_value) { ?>
						<li>
							<a href="index.php?act=goods&op=goods_detail&goods_id=<?php echo $_value['goods_id']; ?>"><img style="max-width: 100%;" src="<?php echo cthumb($_value['goods_image'], 265, $_value['store_id']);?>"/></a>
							<div style="padding: 10px 12px; line-height: 22px;">
							<p style="color: #555555; font-size: 14px;"><?php echo $_value['goods_name']; ?></p>
							<div style="color: #c10a1f; font-size: 16px;" class="fl">￥<?php echo $_value['goods_price']; ?></div>
							&nbsp;
							</div>
						</li>
						<?php } ?>	
		<!-- li>
			<a href="#"><img style="max-width: 100%;" src="<?php echo APP_TEMPLATES_URL;?>/images/index_19-09.jpg"></a>
			<p style="color: #555555; font-size: 14px;">fhgdg</p>
			<p style="color: #000000; font-size: 16px;">￥345345.00</p>
			<p style="color: #f9b800; font-size: 13px;">年收益5%</p>
		</li>
		<li>
			<a href="#"><img style="max-width: 100%;" src="<?php echo APP_TEMPLATES_URL;?>/images/index_19-09.jpg"></a>
			<p style="color: #555555; font-size: 14px;">fhgdg</p>
			<p style="color: #000000; font-size: 16px;">￥345345.00</p>
			<p style="color: #f9b800; font-size: 13px;">年收益5%</p>
		</li>
		<li>
			<a href="#"><img style="max-width: 100%;" src="<?php echo APP_TEMPLATES_URL;?>/images/index_19-09.jpg"></a>
			<p style="color: #555555; font-size: 14px;">fhgdg</p>
			<p style="color: #000000; font-size: 16px;">￥345345.00</p>
			<p style="color: #f9b800; font-size: 13px;">年收益5%</p>
		</li>
		<li>
			<a href="#"><img style="max-width: 100%;" src="<?php echo APP_TEMPLATES_URL;?>/images/index_19-09.jpg"></a>
			<p style="color: #555555; font-size: 14px;">fhgdg</p>
			<p style="color: #000000; font-size: 16px;">￥345345.00</p>
			<p style="color: #f9b800; font-size: 13px;">年收益5%</p>
		</li-->

	</ul>
</div>